import request from '@/utils/request'

export function getQuestion() {
  return request({
    url: '/ems/question/list',
    method: 'get'
  })
}

export function addQuestion(data) {
  return request({
    url: '/ems/question/add',
    method: 'post',
    data
  })
}

export function editQuestion(data) {
  return request({
    url: '/ems/question/edit',
    method: 'post',
    data
  })
}

export function deleteQuestion(data) {
  return request({
    url: '/ems/question/delete',
    method: 'delete',
    params: data
  })
}

export function deleteBatchQuestion(data) {
  return request({
    url: '/ems/question/deleteBatch',
    method: 'delete',
    params: data
  })
}
